package com.cswnode.Service;

import com.cswnode.Dao.LoginTicketMapper;
import com.cswnode.Entity.LoginTicket;
import com.cswnode.Entity.User;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.Map;

/**
 * @author csw
 * @create 2020/9/16/11:35
 */
@Service
public interface LoginService {

    /**
     * 登陆用户
     * @param username
     * @param password
     * @param expired
     * @return
     */
    Map<String,Object> Login(String username, String password, int expired);

    /**
     * 退出账号
     * @param ticket
     */
    void logout(String ticket);

    /**
     * 查询登陆凭证
     * @return
     */
    LoginTicket findLoginTicket(String ticket);

    /**
     * 读取用户缓存信息
     * @param userId
     * @return
     */

}
